package uk.ac.aber.Blockmation.Actions;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import uk.ac.aber.Blockmation.Viewer;

/**
 * 
 * @author alex
 */

public class ActionPlayMovieViewer extends AbstractAction {
    
    private Viewer viewer;
    
    private PlayMovieThread playMovieThread;

    public ActionPlayMovieViewer(Viewer viewer) {
        
        super("Play Animation");
        
        this.viewer = viewer;
        
        //playMovieThread = new PlayMovieThread(movieModel, display, viewer);
        
    }
    
    public void actionPerformed(ActionEvent e) {
        
        playMovieThread = new PlayMovieThread(viewer);
        playMovieThread.start();
        
    }

}
